package controlador;

import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JButton;

import modelo.ModeloDelJuego;

public class BotonAvanzarTurno extends JButton {

	/**
	 * 
	 */
	private static final long serialVersionUID = 400043549057438126L;

	public BotonAvanzarTurno(ModeloDelJuego modelo){
		
		//super("Avanzar Turno");
		this.setPreferredSize(new Dimension(30,30));
		this.addActionListener(new AccionAvanzarTurno(modelo));
		BufferedImage imagen = null;
		try {
			imagen = ImageIO.read(new File("Imagenes/botonAvanzarTurno.png"));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.setIcon(new ImageIcon(imagen));
		
	}
	
}
